const express = require("express");

const app = express();

// 路径和方法匹配的中间件
app.get("/home", (req, res) => {
  console.log("路径和方法匹配的中间件 01");
  res.end();
});

app.get("/login", (req, res) => {
  console.log("路径和方法匹配的中间件 02");
  res.end();
});

app.listen(8000, () => {
  console.log("路径和方法匹配的中间件服务器启动成功~~~");
});
